package com.yonyougov.devops.cruxcisupport.kubeconfig;

import com.yonyougov.devops.fwc.core.entity.Pagination;
import com.yonyougov.devops.fwc.core.service.BaseService;

import java.math.BigInteger;

/**
* t_kube_config服务
*/
public interface KubeConfigService extends BaseService<KubeConfigEntity, BigInteger> {
    //<!--用户自定义代码开始-->

    /**
     * 根据环境名称查询
     * @param envName 环境名称
     * @return com.yonyougov.devops.cruxcisupport.kubeconfig.KubeConfigEntity
     */
    KubeConfigEntity findByEnvName(String envName);

    /**
     * 查询kubeconfig
     * 条件: KubeConfigEntity实体
     *
     * @param build com.yonyougov.devops.cruxcisupport.kubeconfig.KubeConfigEntity
     * @return com.yonyougov.devops.cruxcisupport.kubeconfig.KubeConfigEntity
     */
    Pagination<KubeConfigEntity> findByKubeConfigPageLike(KubeConfigEntity build);

    /**
     * 新增或者更新
     * @param build com.yonyougov.devops.cruxcisupport.kubeconfig.KubeConfigEntity
     */
    void save(KubeConfigEntity build);
    //<!--用户自定义代码结束-->
}
